<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //字符串查找
        var str = "asdfghjkl";
        console.log(str.search("0"));
        console.log("===========================");
        console.log(str.search(/d/));
        console.log("===========================");
        console.log(str.indexOf('d'));
    </script>
</head>
<body>

</body>
</html>